{% extends "base.html" %}{% block content_base %}
<div class="full_width overflow_hidden"><table width="100%" border="1">
<tr align="center"><td>ID</td><td>KEY</td><td>日期</td><td>内容</td><td align="right">删除当前笔记</td></tr>
{% for article in articles %}
	<tr align="center"><td>{{ article.key.id }}</td>
	<td>{{ article.key }}</td>
	<td>{{ article.time_date|date:"m月d日 H时i分s秒 Y年" }}</td>
	<td>{{ article.content }}</td>
	<td align="right"><form action="" method="post">
		<input type="hidden" value="{{ article.key }}" name="key_hidden" />
		<input type="submit" value="删除此笔记" />
	</form></td></tr>
{% endfor %}</table></div>
<div class="article overflow_hidden">
	{% if pre_page %}
		<div class="float_left"><a href="/root.html?b={{ pre_page.key.id }}">上一页</a></div>
	{% endif %}
	{% if next_page %}
		<div class="float_right"><a href="/root.html?b={{ next_page.key.id }}">下一页</a></div>
	{% endif %}
</div>
<div id="form_footer"><form action="" method="post">
	<div class="full_width"><textarea name="content_form" id="textarea_form"></textarea></div>
	<div class="full_width align_right"><input type="submit" value="提交新笔记" /></div>
</form></div>
{% endblock %}
